<template>
	<!-- 关注页面 -->
	<view>
		<!-- <van-sticky
		@scroll="tops">
		  <van-nav-bar
		    title="标题"
		    left-text="返回"
		    right-text="按钮"
		    left-arrow
		    bind:click-left="onClickLeft"
		    bind:click-right="onClickRight"
		  />
		</van-sticky> -->
		<van-picker show-toolbar :columns="arrays" @change="onChange" />
	</view>
</template>

<script>
	export default{
		data(){
			return{
				arrays:['散户','批发商']
			}
		},
		methods:{
			onChange(val){
				// if(val.detail.scrolltop>50){
				// 	val.detail.isFixed=true
				// }else{
				// 	val.detail.isFixed=false
				// }
				console.log(val)
			}
		}
	}
</script>

<style>
	page{
		height: 100%;
		width: 750rpx;
		background-color: #F3F3F3;
	}
</style>
